#!/usr/bin/make -f

PACKAGE = agnocast-kmod-v2.1.2
VERSION = $(shell cat $(CURDIR)/version.txt)

%:
	dh $@ --with dkms

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/$(PACKAGE)/usr/src/agnocast-$(VERSION)
	rsync -av --exclude='debian' ./ $(CURDIR)/debian/$(PACKAGE)/usr/src/agnocast-$(VERSION)/

override_dh_auto_build:
	@echo "Skipping build due to DKMS."

override_dh_auto_clean:
	@echo "Skipping clean due to DKMS."

override_dh_auto_test:
	@echo "Skipping tests during PPA build."
